package com.pmcc.cj.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pmcc.core.entity.UUIDEntity;
import com.pmcc.utils.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 种地大户认证
 * Created by tomas on 2020/9/5.
 */
@Entity
@Table(name = "cj_farm")
public class CjFarm extends UUIDEntity {
    @Column(name = "employee_id")
    private String employeeId;//人员id
    @Column(name = "image1_id")
    private String image1Id;//身份正面照片
    @Column(name = "image2_id")
    private String image2Id;//身份反面照片
    @Column(name = "card_id")
    private String cardId;//身份证号
    @Column(name = "submit_time")
    private Date submitTime;//认证提交时间
    @Column(name = "name")
    private String name;//申请人
    @Column(name = "verify_result")
    private Integer verifyResult;//审核结果 0 审核中 1审核通过 2审核拒绝
    @Column(name = "salesman_id")
    private String salesmanId;//业务员id
    @Column(name = "salesman_name")
    private String salesmanName;//业务员姓名
    @Column(name = "code")
    private String code;//使用的认证码

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @JsonSerialize(using = DateTimeFormat.class)
    public Date getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public Integer getVerifyResult() {
        return verifyResult;
    }

    public void setVerifyResult(Integer verifyResult) {
        this.verifyResult = verifyResult;
    }

    public String getSalesmanId() {
        return salesmanId;
    }

    public void setSalesmanId(String salesmanId) {
        this.salesmanId = salesmanId;
    }

    public String getSalesmanName() {
        return salesmanName;
    }

    public void setSalesmanName(String salesmanName) {
        this.salesmanName = salesmanName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getImage1Id() {
        return image1Id;
    }

    public void setImage1Id(String image1Id) {
        this.image1Id = image1Id;
    }

    public String getImage2Id() {
        return image2Id;
    }

    public void setImage2Id(String image2Id) {
        this.image2Id = image2Id;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }
}
